[gd_scene load_steps=7 format=3]

[ext_resource type="Script" path="res://scenes/coin/coin.gd" id="1_0tuvo"]
[ext_resource type="Texture2D" uid="uid://deai3lu65rb7c" path="res://assets/sprites/coin/coin.png" id="1_aympv"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_vnciy"]
size = Vector2(12, 12)

[sub_resource type="Animation" id="Animation_x5na5"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("CollisionShape2D:shape:size")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(12, 12)]
}

[sub_resource type="Animation" id="Animation_7j3ro"]
resource_name = "rotation"
loop_mode = 1
step = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6, 0.8),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 1,
"values": [0, 1, 2, 3, 4]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("CollisionShape2D:shape:size")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector2(12, 12), Vector2(10, 12), Vector2(6, 12), Vector2(2, 12)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_mjex3"]
_data = {
"RESET": SubResource("Animation_x5na5"),
"rotation": SubResource("Animation_7j3ro")
}

[node name="Coin" type="Area2D"]
collision_layer = 4
collision_mask = 2
script = ExtResource("1_0tuvo")

[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_aympv")
hframes = 5

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_vnciy")

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_mjex3")
}

[connection signal="body_entered" from="." to="." method="_on_body_entered"]
